import request from '@/utils/request'

export function fetchUpdateConfig(data, name) {
  return request({
    url: '/backend/config/update-record',
    method: 'post',
    data: {
      data: data,
      name: name
    }
  })
}
export function fetchGetConfig(name) {
  return request({
    url: '/backend/config/get-record',
    method: 'get',
    params: {
      name: name
    }
  })
}
